/*
 * @Author: C.
 * @Date: 2021-12-22 13:47:28
 * @LastEditTime: 2021-12-22 13:52:46
 * @Description: 单据状态枚举
 */
export default {
  /// <summary>
  /// 未提交
  /// </summary>
  'Unsubmitted': {
    name: '未提交',
    value: 'Unsubmitted',
    color: '#909399',
    fcolor:'#fff',
    icon: '',
    operation: {
      submit:true,
      edit:true,
      del:true,
    }
  },
  /// <summary>
  /// 已提交
  /// </summary>
  'Submitted': {
    name: '已提交',
    value: 'Submitted',
    color: '#faad14',
    fcolor:'#fff',
    icon: '',
    operation: {
      edit:false,
      del:false,
      audit:true,
      reject:true,
      revokeAudit:true,
    }
  },
  /// <summary>
  /// 已审核
  /// </summary>
  'Approved': {
    name: '已审核',
    value: 'Approved',
    color: '#FE222D',
    fcolor:'#fff',
    icon: '',
    operation: {
      edit:false,
      del:false,
      audit:false,
      reject:false,
      revokeAudit:true,
      // 转单据
      transform:true
    }
  },
  /// <summary>
  /// 已拒绝
  /// </summary>
  'Rejected': {
    name: '已拒绝',
    value: 'Rejected',
    color: '#000000',
    fcolor:'#fff',
    icon: '',
    operation: {
      submit:true,
      edit:true,
      del:true,
    }
  },
  /// <summary>
  /// 已完成
  /// </summary>
  'Completed': {
    name: '已完成',
    value: 'Completed',
    color: '#39B54A',
    fcolor:'#fff',
    icon: '',
    operation: {}
  },
  // 错误状态
  'Fail': {
    name: '错误',
    value: 'Completed',
    color: '#39B54A',
    fcolor:'#fff',
    icon: '',
    operation: {}
  },
}
